<?php

class Kd_Web_Handler{

    public function __construct(){
    }

    public function process(){
        $component = Kd_Web::getComponent();
        $router = Kd_Web::getRouter();
    	$actionResult = $component->getController($router->getController())->execute($router->getAction());
        if(is_null($actionResult)){
            $actionResult = Kd_Factory::findInstance('mvc_component_controller_result_view');
        }
        $actionResult->execute();
    }
}